Frames No Frames Cognitoware API v2009512
Cognitoware.Robotics.dll
Cognitoware.Mathematics.Probability.Continuous

Class GlobalUniform<T>
T: The type of value predicted by the distribution.

System.Object


Summary

A distribution that has the same probability for all values in T.

Constructor Summary

GlobalUniform(Double)
Creats a GlobalUniform were evere value of T has probability of "value".

Method Summary

AliasAs()
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
Equals(Object)
Inherited from System.Object
Finalize()
Inherited from System.Object
GetEntropy(IEnumerable<T>)
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
GetHashCode()
Inherited from System.Object
GetType()
Inherited from System.Object
MemberwiseClone()
Inherited from System.Object
ProbabilityOf(T)
Returns value specified in the constructor.
Sample(Random)
Not implemented in GlobalUniform.
ToString()
Inherited from System.Object

Details

This distribution is intented to be uniform across T. However, if T were infinite ProbabilityOf would always return zero. To get around very large domains, GlobalUniform is created with a single value that it always returns for every single value of T. The user is responsible for ensuring normalization of this distribution or distributions that interact with this one.

Constructor Details

public GlobalUniform(Double value)
Creats a GlobalUniform were evere value of T has probability of "value".

Parameters:

value - The probability of all values in T.

Method Details

public override Double ProbabilityOf(T x)
Returns value specified in the constructor.

Parameters:

x - The value whose probability is requested.

Returns:

The constant probability value

public override T Sample(Random select)
Implements the abstract method in RandomDistribution. Throws NotImplementedException.


Questions, Comments and Licensing
Copyright 2009 Cognitoware. All rights reserved.